package designPattern.adapter.voltage;

public abstract class Appliance {

	private int voltage;

	public abstract void run();

	public Appliance(int voltage) {
		this.voltage = voltage;
	}

	/**
	 * 获取voltage
	 *
	 * @return voltage
	 */
	public int getVoltage() {
		return voltage;
	}

	/**
	 * 设置voltage
	 *
	 * @param voltage voltage
	 */
	public void setVoltage(int voltage) {
		this.voltage = voltage;
	}
}
